package com.teamwechat.controller;

import com.teamwechat.common.utils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
@Api(tags = "测试接口")
public class TestDemoController {

    @GetMapping("/testr")
    @ApiOperation("测试的请求路径")
    public R testr(String adderss, String username){
        HashMap<String, Object> map = new HashMap<>();
        map.put("地址",adderss);
        map.put("用户姓名",username);
        return R.ok(map);
    }

    @GetMapping("test2")
    @ApiOperation("测试二")
    public R test2(){
        return R.ok();
    }

}
